projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f87a43
)
(diff): Add a revert-buffer function.
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Tue, 10 Feb 2004 21:59:19 +0000
(21:59 +0000)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Tue, 10 Feb 2004 21:59:19 +0000
(21:59 +0000)
lisp/diff.el
patch
|
blob
|
history
diff --git
a/lisp/diff.el
b/lisp/diff.el
index c776e36dfdcbc2dcc866968a2fe0471c99764c14..dab3c7ebff33c5d3f68376eacfa33129081577c3 100644
(file)
--- a/
lisp/diff.el
+++ b/
lisp/diff.el
@@
-247,6
+247,9
@@
With prefix arg, prompt for diff switches."
'diff-parse-differences
nil nil nil nil nil nil no-async))
(set-buffer buf)
+ (set (make-local-variable 'revert-buffer-function)
+ `(lambda (ignore-auto noconfirm)
+ (diff ',old ',new ',switches ',no-async)))
(set (make-local-variable 'diff-old-file) old)
(set (make-local-variable 'diff-new-file) new)
(set (make-local-variable 'diff-old-temp-file) old-alt)